import uvicorn
from fastapi import FastAPI

from web.predict_router import predict_router

# 创建FastAPI应用实例
app = FastAPI(title="商品标题分类API")

# 注册路由
app.include_router(predict_router)

# 启动服务
def run_app():
    uvicorn.run("web.app:app", port=8000)